<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>修改员工信息</h1>
    <form th:action="@{/employee/do_update_emp}">
        <ul>
            <input type="hidden" name="id" th:value="${emp.id}">
            <li><input type="text" name="employeeNo" th:value="${emp.employeeNo}"></li>
            <li><input type="text" name="employeeName" th:value="${emp.employeeName}"></li>
            <li>
                <select name="departId">
                    <option th:each="d:${departs}"
                            th:value="${d.id}"
                            th:text="${d.departName}"
                            th:selected="${d.id eq emp.departId}"></option>
                </select>
            </li>
            <li><input type="submit" value="提交"></li>
        </ul>
    </form>

</body>
</html>